package com.shengde.jinwawaforleader.network.protocolbean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Chason on 2016/10/26.
 */

public class ProStudentInfo {

    /**
     * address : dfd
     * gender : 0
     * nation : dfd
     * memo : dd
     * birthDate : 1450022400000
     * classid : 1330
     * schoolid : 6
     * name : 元心怡
     * plnumber : 00000006
     * logo : 20160511162347255234.png
     * tel : 18600000000
     * id : 10
     * residence : df
     * guardian : sdfsdf
     * workPlace : ddd
     */

    private List<CodeEntity> code;

    public List<CodeEntity> getCode() {
        return code;
    }

    public void setCode(List<CodeEntity> code) {
        this.code = code;
    }

    public static class CodeEntity implements Parcelable{
        private String address;
        private String gender;
        private String nation;
        private String memo;
        private long birthDate;
        private int classid;
        private int schoolid;
        private String name;
        private String plnumber;
        private String logo;
        private String tel;
        private int id;
        private String residence;
        private String guardian;
        private String workPlace;

        protected CodeEntity(Parcel in) {
            address = in.readString();
            gender = in.readString();
            nation = in.readString();
            memo = in.readString();
            birthDate = in.readLong();
            classid = in.readInt();
            schoolid = in.readInt();
            name = in.readString();
            plnumber = in.readString();
            logo = in.readString();
            tel = in.readString();
            id = in.readInt();
            residence = in.readString();
            guardian = in.readString();
            workPlace = in.readString();
        }

        public static final Creator<CodeEntity> CREATOR = new Creator<CodeEntity>() {
            @Override
            public CodeEntity createFromParcel(Parcel in) {
                return new CodeEntity(in);
            }

            @Override
            public CodeEntity[] newArray(int size) {
                return new CodeEntity[size];
            }
        };

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getNation() {
            return nation;
        }

        public void setNation(String nation) {
            this.nation = nation;
        }

        public String getMemo() {
            return memo;
        }

        public void setMemo(String memo) {
            this.memo = memo;
        }

        public long getBirthDate() {
            return birthDate;
        }

        public void setBirthDate(long birthDate) {
            this.birthDate = birthDate;
        }

        public int getClassid() {
            return classid;
        }

        public void setClassid(int classid) {
            this.classid = classid;
        }

        public int getSchoolid() {
            return schoolid;
        }

        public void setSchoolid(int schoolid) {
            this.schoolid = schoolid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPlnumber() {
            return plnumber;
        }

        public void setPlnumber(String plnumber) {
            this.plnumber = plnumber;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public String getTel() {
            return tel;
        }

        public void setTel(String tel) {
            this.tel = tel;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getResidence() {
            return residence;
        }

        public void setResidence(String residence) {
            this.residence = residence;
        }

        public String getGuardian() {
            return guardian;
        }

        public void setGuardian(String guardian) {
            this.guardian = guardian;
        }

        public String getWorkPlace() {
            return workPlace;
        }

        public void setWorkPlace(String workPlace) {
            this.workPlace = workPlace;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(address);
            dest.writeString(gender);
            dest.writeString(nation);
            dest.writeString(memo);
            dest.writeLong(birthDate);
            dest.writeInt(classid);
            dest.writeInt(schoolid);
            dest.writeString(name);
            dest.writeString(plnumber);
            dest.writeString(logo);
            dest.writeString(tel);
            dest.writeInt(id);
            dest.writeString(residence);
            dest.writeString(guardian);
            dest.writeString(workPlace);
        }
    }
}
